package org.yzl.designPatterns.factorymethod.staticFactory;


import org.yzl.designPatterns.factorymethod.staticFactory.impl.MailSenderImpl;
import org.yzl.designPatterns.factorymethod.staticFactory.impl.MessageSenderImpl;

/**
 * 静态工厂模式
 */
public class SendFactory {
    public static ISender produceMail(){
        return new MailSenderImpl();
    }
    public static ISender produceMessage(){
        return new MessageSenderImpl();
    }
}
